package com.chenfan.mcn.dao;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.chenfan.common.extension.mybatisplus.enhanced.EnhancedBaseMapper;
import com.chenfan.mcn.model.LiveStarSettlement;
import com.chenfan.mcn.model.dto.LiveStarSettlementSearchDTO;
import com.chenfan.mcn.model.vo.LiveStarSettlementExportVO;
import com.chenfan.mcn.model.vo.LiveStarSettlementListVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 直播红人结算单 Mapper 接口
 * </p>
 *
 * @author wulg
 * @since 2023-03-21
 */
public interface LiveStarSettlementMapper extends EnhancedBaseMapper<LiveStarSettlement> {

    /**
     * 分页查询
     * @param page
     * @param searchDTO
     * @return
     */
    Page<LiveStarSettlementListVO> getPage(Page<LiveStarSettlementListVO> page, @Param("dto") LiveStarSettlementSearchDTO searchDTO);

    /**
     * 导出excel
     * @param searchDTO
     * @return
     */
    List<LiveStarSettlementExportVO> exportExcel(@Param("dto") LiveStarSettlementSearchDTO searchDTO);
}
